{extend name="public:layout" /}
{block name="title"}活动管理{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 活动管理</a></li>
                <li class="active">添加活动</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">活动名称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入活动名称" name="flashsale_name" value="" datatype="*" />
                        <p class="help-block">活动名称将显示在限时折扣活动列表中，方便商家管理使用，最多可输入25个字符。</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">活动描述</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" placeholder="请输入活动描述" name="flashsale_explain" value="" />
                        <p class="help-block">活动描述是商家对限时折扣活动的补充说明文字,在商品详情页-优惠信息位置显示;非必填选项，最多可输入30个字符。</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">开始时间</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control laydatetime" name="begin_time" value="" datatype="*" />
                    </div>
                    <label class="col-sm-2 control-label Validform_label">结束时间</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control laydatetime" name="end_time" value="" datatype="*" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        formatDate();
        ajaxSubForm('#btnSub');
    })
</script>
{/block}